﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addDinner.aspx.cs" Inherits="Manage_addDinner" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table style="width: 95%">
            <tr>
                <td style="height:20px">
                    添加菜肴</td>
            </tr>
            <tr >
               <td style="height:164px" align="left" valign="top">
               <table style="width: 669px; ">
                       <tr>
                           <td style="width: 92px;height: 30px">
                               菜名</td>
                           <td>
                               <asp:TextBox ID="tbDName" runat="server"></asp:TextBox>
                               <asp:RequiredFieldValidator ID="rfvDname" runat="server" ControlToValidate="tbDName"
                                   Display="Dynamic" ErrorMessage="菜名不能为空"></asp:RequiredFieldValidator></td>
                          
                       </tr>
                       <tr>
                           <td style="width: 92px;height: 30px">
                               图片</td>
                           <td>
                               <asp:FileUpload ID="tbDPic" runat="server" Width="455px" /></td>
                          
                       </tr>
                       <tr>
                           <td style="width: 92px;height: 30px">
                               价格</td>
                           <td>
                               <asp:TextBox ID="tbDPrice" runat="server"></asp:TextBox>
                               <asp:RequiredFieldValidator ID="rfvPrice" runat="server" ControlToValidate="tbDPrice"
                                   Display="Dynamic" ErrorMessage="价格不能为空"></asp:RequiredFieldValidator>
                               <asp:RangeValidator ID="rvPrice" runat="server" ControlToValidate="tbDPrice" Display="Dynamic"
                                   ErrorMessage="价格应该是1-100之间的整数" MaximumValue="100" MinimumValue="1" Type="Integer"></asp:RangeValidator></td>
                           
                       </tr>
                       <tr>
                           <td style="width: 92px;height: 30px">
                               分类</td>
                           <td>
                               <asp:DropDownList ID="ddlClass" runat="server" Width="154px">
                               </asp:DropDownList></td>
                          
                       </tr>
                        <tr>
                           <td style="width: 92px;height: 93px">
                               简介</td>
                           <td style="height: 93px">
                               <asp:TextBox ID="tbDContent" runat="server" Height="85px" TextMode="MultiLine" Width="569px"></asp:TextBox></td>
                          
                       </tr>
                        <tr>
                           <td style="width: 92px;height: 30px">
                               </td>
                           <td>
                               <asp:Button ID="btnAdd" runat="server" Text=" OK " OnClick="btnAdd_Click" />
                               <asp:Button ID="btnCancel" runat="server" Text="Cancel" /></td>
                          
                       </tr>
                   </table>
               </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
